Securing the thread at the beginning and end of work